package com.jet.goods.domain.vo;

import com.jet.core.enums.IEnum;
import com.jet.goods.domain.enums.UnitType;
import lombok.Data;

import java.io.Serializable;

@Data
public class UnitVo implements Serializable {

    private static final long serialVersionUID = 1L;

    private String id;

    private Long merchantNo;

    private String name;

    /**
     * 单位计价方式
     */
    private Integer type;

    private String typeDesc;

    private Integer status;

    public String getTypeDesc() {
        return IEnum.getNameByCode(this.getType(), UnitType.class);
    }
}
